﻿
@{
    ViewBag.Title = "一元云购后台管理系统";
    Layout = null;
    DateTime now = DateTime.Now;
    int maxpage = Yyyg.BLL.GoodsOper.GetSumPages();
}
@model Yyyg.WebUI.Models.AdminVM
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="~/Content/pub.css?rdm=@(new Random().Next(0,int.MaxValue))" rel="stylesheet" />
    <link href="~/Content/backstage/bastage.css?rdm=@(new Random().Next(0,int.MaxValue))" rel="stylesheet" />
    <script src="~/Scripts/jquery-3.6.0.min.js"></script>
</head>
<body>
    <header>
        <div class="info">
            <div style="width:100%;color:white" class="flex-center">
                <span>
                    欢迎
                    <a href="#" style="color:yellow;cursor:pointer;">
                        @Model.Name
                    </a>
                    ,@(now.Hour > 12 ? "下午好" : "上午好")
                    <a id="logout" href="Login" style="color:yellow;cursor:pointer;">退出登陆</a>
                </span>
            </div>
        </div>
    </header>
    <section>
        <div class="menu">
            <ul>
                <li id="menu-home" class="checked">主页</li>
                <li id="menu-gdmmt">商品管理</li>
            </ul>
        </div>
        <div class="content">
            <div class="top-statebox"></div>
            <div class="view">
                @*面板集*@
                <div id="panel-home" class="panel flex-center" style="z-index:1;font-size:1.8rem;">
                    一元云购后台首页
                </div>
                <div id="panel-gdmmt" class="panel">
                    <div class="top">
                        <div class="flex-center">
                            <span>查询参数:</span>
                            <input id="input-par" type="text" placeholder="输入商品商品名称" />
                            <button id="good-query" style="width:60px;height:25px" class="btn">查询</button>
                        </div>
                        <div class="flex-center">
                            <button style="width:60px" id="good-add" class="btn">添加商品</button>
                            <button style="width:60px" id="reload" class="btn" onclick="reQuery()">刷新列表</button>
                        </div>
                    </div>
                    <div class="btm">
                        <div class="page">
                            <div class="query-none fill flex-center">
                                <span style="font-size:1.8rem;color:#666;">
                                    没有查询到任何商品
                                </span>
                            </div>
                        </div>
                        <div class="pageOper flex-center">
                            <div class="oper">
                                <span><button id="btn-lastpage" class="btn">上一页</button></span>
                                <span><button id="btn-nextpage" class="btn">下一页</button></span>
                                <span>第<span id="nowpagenum">1</span>页</span>
                                <span>共 <span id="maxpagenum">@(maxpage)页</span></span>
                                <span>跳转到第<input type="number" id="skipvalue" min="1" max="@maxpage" style="width:50px" />页</span>
                                <span><button id="btn-skippage" class="btn">跳转</button></span> 
                            </div>
                        </div>
                    </div>
                    <div class="mask flex-center">
                        <div id="ifrbox">
                            <button id="close-ifr" class="closebtn" onclick="hide_Ifr();reQuery()"></button>
                            <iframe id="ifr-gd" src="AddGood" scrolling="auto"></iframe>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <script src="~/Scripts/backstage/backstage.js"></script>
    <script type="text/javascript">
        query(1, 2);
    </script>
</body>
</html>



